//
//  backView.m
//  CRSCMOA
//
//  Created by 王文晓 on 16/8/8.
//  Copyright © 2016年 王文晓. All rights reserved.
//

#import "backView.h"
#import "ApplyViewController.h"
#import "JNTMailViewController.h"

@implementation backView 




//获取当前view的控制器
- (UIViewController*)viewController:(UIView *)selfView {
    for (UIView* next = [selfView superview]; next; next = next.superview) {
        UIResponder* nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[UIViewController class]]) {
            return (UIViewController*)nextResponder;
        }
    }
    return nil;
}


- (IBAction)confirmBtn:(UIButton *)sender {
    JNTMailViewController *emil = [[JNTMailViewController alloc]init];
    [emil setUpNavgationBartitle];
    [self.navc pushViewController:emil animated:YES];
    self.view.hidden = YES;
    [self endEditing:YES];
    
    
}

- (IBAction)cancelBtn:(UIButton *)sender {

    self.view.hidden = YES;
    [self endEditing:YES];

}









@end
